package Test.Humburger;

/**
 * Created by 春旺 on 2017/4/19.
 */
public class Chilli extends Condiment
{
    cho10_01 humburger;
    public Chilli(cho10_01 humburger){
        this.humburger = humburger;
    }

    public double getPrice() {
        return humburger.getPrice();  //辣椒是免费
    }

    @Override
    public String humburger_name() {
        return  humburger.getHumburger_name() + "加辣椒";
    }
}
